/*
 * Copyright 2012-2014 Manlost.com All right reserved. This software is the
 * confidential and proprietary information of Manlost.com ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with Manlost.com.
 */
package com.manlost.biz.account.impl.dao.interfaces;

import java.util.List;

import com.manlost.biz.account.model.dataobject.Account;
import com.manlost.biz.account.query.ListAccountQuery;

/**
 * AccountDao
 * 
 * @author kang.zhouk
 */
public interface AccountDAO {

	public List<Account> listAccount(ListAccountQuery query);
	
	/**
	 * 根据邮箱查找用户数据
	 * 
	 * @param email 用户邮箱
	 * @return
	 */
	public Account findAccount(String email);

	/**
	 * 创建用户
	 * 
	 * @param account 用户信息
	 * @return
	 */
	public Account createAccount(Account account);
}
